package com.lifetime.mapper;

import com.lifetime.model.Pic;
import org.apache.ibatis.annotations.Mapper;

import java.sql.Timestamp;
import java.util.List;
import java.util.Map;

@Mapper
public interface PicMapper {
    int insertOnePic(Pic pic, Timestamp t);

    List<Map<Integer, String>> getOneObject(String index, int user_id);


    List<Map<Integer, String>> getOtherObject(int user_id);

    int InstallDescription(Pic pic, Timestamp t);

    int deletePic(int id);

    String selectObject(String picObject);

    void insertObject(String picObject, int user_id);

    int moveObject(int picId, String TypeId, int user_id);

    List<Map<String, Object>> getAllPic(int uerId);
}
